package com.dq.Week2.day06;

/**
 * Object类是最大的父类
 */
public class Demo04 {
    public static void main(String[] args) {

        Animal animal = new Animal();
//        String s = animal.toString();
        System.out.println(animal);
        // 这个equals方法是从父类 Object中继承的
//        boolean equals = animal.equals("123");
//        int i = animal.hashCode();
//        System.out.println(equals);
//        System.out.println(i);

        Object o = new Object();
        System.out.println(o);

    }
}